|
RAIS
3.2
|
00001 00028 using System; 00029 using System.Collections.Generic; 00030 using System.Data; 00031 using System.Text; 00032 00033 namespace RAIS.Common 00034 { 00035 public class SearchDefinition 00036 { 00037 //********************************************************************* 00038 #region Fields 00039 string searchItem = ""; 00040 string searchField = ""; 00041 string searchSQL = ""; 00042 int id=0; 00043 int maskID=0; 00044 int tabID=0; 00045 int dynamicMaskID=0; 00046 #endregion 00047 //********************************************************************* 00048 #region Properties 00049 00050 00051 00052 public string SearchItem 00053 { 00054 get { return this.searchItem; } 00055 set { this.searchItem = value; } 00056 } 00060 public string SearchField 00061 { 00062 get { return this.searchField; } 00063 set { this.searchField = value; } 00064 } 00068 public string SearchSQL 00069 { 00070 get { return this.searchSQL; } 00071 set { this.searchSQL = value; } 00072 } 00076 public int MaskID 00077 { 00078 get { return maskID; } 00079 set { maskID = value; } 00080 } 00084 public int TabID 00085 { 00086 get { return tabID; } 00087 } 00091 public int DynamicMaskID 00092 { 00093 get { return dynamicMaskID; } 00094 set { dynamicMaskID = value; } 00095 } 00099 public int ID 00100 { 00101 get { return id; } 00102 } 00103 00104 #endregion 00105 //********************************************************************* 00106 #region Constructors 00107 public SearchDefinition() { } 00108 public SearchDefinition(IDataRecord record) 00109 { 00110 this.searchItem = record["Search Item"].ToString(); 00111 this.searchField = record["Search Field"].ToString(); 00112 this.searchSQL = record["Search SQL"].ToString(); 00113 this.maskID = (int)record["FK Mask ID"]; 00114 this.tabID = (int)record["Order"]; 00115 this.dynamicMaskID = (int)record["FK Dynamic Mask ID"]; 00116 this.id = (int)record["PK_SQL_ID"]; 00117 } 00118 #endregion 00119 } 00120 }